set VS2008="C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com"
set curDir=%CD%
cd /d %curDir%
set PACS=%cd%
cd..
cd DB
set DB=%cd%
cd /d %curDir%
start %PACS%\projects\testbat.exe
%VS2008% /clean release %PACS%\projects\decodelib.sln
%VS2008% /clean release %PACS%\Sysutils\Sysutils.vcproj
%VS2008% /clean release %DB%\PacsDb.vcproj
%VS2008% /clean release %PACS%\Graphics\Graphics.icproj
%VS2008% /clean release %PACS%\DicomJpg\DicomJpg.icproj
%VS2008% /clean release %PACS%\DicomSet\DicomSet.vcproj
%VS2008% /clean release %PACS%\ImageMath\ImageMath.vcproj
%VS2008% /clean release %PACS%\IppImageProcess\IppImageProcess.vcproj
%VS2008% /clean release %PACS%\DicomGSPS\DicomGSPS.vcproj
%VS2008% /clean release %PACS%\DicomImage\DicomImage.vcproj
%VS2008% /clean release %PACS%\DicomSR\DicomSR.vcproj
%VS2008% /clean release %PACS%\DicomNet\DicomNet.vcproj

%VS2008% /clean release %PACS%\ebXMLService\ebXMLService.vcproj
%VS2008% /clean release %PACS%\WebService\WebService.vcproj

%VS2008% /clean release %PACS%\PacsUtils\PacsUtils.vcproj
%VS2008% /clean release %PACS%\DicomIOD\DicomIOD.vcproj
%VS2008% /clean release %PACS%\XDSService\XDSService.vcproj
%VS2008% /clean release %PACS%\HL7Service\HL7Service.vcproj
%VS2008% /clean release %PACS%\StoreService\StoreService.vcproj
%VS2008% /clean release %PACS%\CacheService\CacheService.vcproj
%VS2008% /clean release %PACS%\DicomService\DicomService.vcproj
%VS2008% /clean release %PACS%\StoreManage\StoreManage.vcproj
%VS2008% /clean release %PACS%\TaskService\TaskService.vcproj
%VS2008% /clean release %PACS%\PrintService\PrintService.vcproj

%VS2008% /clean release %PACS%\projects\VOIP.sln
%VS2008% /clean release %PACS%\VNCViewer\VNCViewer.vcproj

%VS2008% /clean release %PACS%\projects\PService.sln

%VS2008% /clean release %PACS%\I3DClient\I3DClient.vcproj
%VS2008% /clean release %PACS%\IppImage3D\IppImage3D.vcproj
%VS2008% /clean release %PACS%\ScreenImage\ScreenImage.vcproj
%VS2008% /clean release %PACS%\WADOService\WADOService.vcproj
%VS2008% /clean release %PACS%\WebExecChild\WebExecChild.vcproj
%VS2008% /clean release %PACS%\PhpInterface\PhpInterface.vcproj
%VS2008% /clean release %PACS%\php_lwapi\php_lwapi.vcproj
%VS2008% /clean release %PACS%\StoreUIGateway\StoreUIGateway.vcproj
%VS2008% /clean release %PACS%\PacsGateway\PacsGateway.vcproj

tasklist|findstr /i "testbat.exe" && taskkill /im testbat.exe /t /f